# -*- coding: utf-8 -*-

from colorama import init, Fore, Back, Style
import pprint

init(autoreset=True)


class Chalk(object):

    #  前景色:红色  背景色:默认
    def red(self, s):
        return "%s%s%s" % (Fore.RED, s, Fore.RESET)

    #  前景色:绿色  背景色:默认
    def green(self, s):
        return "%s%s%s" % (Fore.GREEN, s, Fore.RESET)

    #  前景色:黄色  背景色:默认
    def yellow(self, s):
        return "%s%s%s" % (Fore.YELLOW, s, Fore.RESET)

    #  前景色:蓝色  背景色:默认
    def blue(self, s):
        return "%s%s%s" % (Fore.BLUE, s, Fore.RESET)

    #  前景色:洋红色  背景色:默认
    def magenta(self, s):
        return "%s%s%s" % (Fore.MAGENTA, s, Fore.RESET)

    #  前景色:青色  背景色:默认
    def cyan(self, s):
        return "%s%s%s" % (Fore.CYAN, s, Fore.RESET)

    #  前景色:白色  背景色:默认
    def white(self, s):
        return "%s%s%s" % (Fore.WHITE, s, Fore.RESET)

    #  前景色:黑色  背景色:默认
    def black(self, s):
        return "%s%s%s" % (Fore.BLACK, s, Fore.RESET)

    #  前景色:白色  背景色:绿色
    def white_green(self, s):
        return "%s%s%s%s%s" % (Fore.WHITE, Back.GREEN, s, Fore.RESET, Back.RESET)


chalk = Chalk()
